Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

type-fest

Package Overview
Dependencies
Maintainers
1
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

type-fest

A collection of essential TypeScript types

  • 1.4.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
179M
decreased by-12.06%
Maintainers
1
Weekly downloads
 
Created

What is type-fest?

The type-fest package provides a collection of essential TypeScript types for use in a wide range of applications. It includes utility types, primitive types, and complex object types to enhance TypeScript's static typing capabilities.

What are type-fest's main functionalities?

Primitive types

Includes types like LiteralUnion, Primitive, and Promisable, which help with defining literals, primitive values, and promise-like structures.

{"isPrimitive": true}

Basic utilities

Provides utility types such as Except, Mutable, ReadonlyDeep, and many others that help manipulate and transform types in various ways.

{"isEmptyArray": array.length === 0}

Object types

Contains types for working with objects, such as Merge and RequireAtLeastOne, which assist in merging types and ensuring at least one property is present, respectively.

{"isObjectClean": Object.keys(object).length === 0 && object.constructor === Object}

Conditional types

Includes conditional types like ConditionalExcept and ConditionalKeys, which apply conditions to filter keys or properties of types.

{"isTruthy": T extends false | '' | 0 | null | undefined ? false : true}

Other packages similar to type-fest

Keywords

FAQs

Package last updated on 05 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc